package com.jumi.microservice.constant;

/**
 * 下单库存枚举
 * @author Administrator
 */

public enum OrderInventoryEnum {

    /**
     * 返回状态码集
     */
    ORDER_INVENTORY_NOT_ENOUGH(5001, "库存不足"),
    ORDER_INVENTORY_REGION_NOT_ENOUGH(5001, "在该地区库存不足");

    OrderInventoryEnum(int code, String desc){
        this.code = code;
        this.desc = desc;
    }

    private int code;

    private String desc;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
